<div class="row-fluid" style="margin-bottom: 10px;">
    <div class="span12">
        <div class="box">
            <div class="tab-header">
                <i class="icon-file" style="margin-left: 10px;"></i><?=lang('label_view')?></div>

            <div class="padded" id="action_load_mudle">
                <!-- action contant  -->
                <h4><?= $result->username ?> 
                    <a href="<?=base_url().ADMIN_FOLDER?>/users/send_email/<?= $result->username ?>" class="send_email">email</a></h4>
                <? echo $result->create_date; ?>
                <ul id="listview">
                    <li>
                        <span class="details_item"><?=lang('label_email')?> </span>
                        <? if ($result->email != '') { ?> 

                           <?= $result->email ?>

                        <? } ?>  

                    </li>
                    <li><span class="details_item"><?=lang('label_user_code')?> </span>
                        <?
                        if ($result->confirm_code != '') {
                            echo $result->confirm_code;
                        }
                        ?>
                    </li>
                 
                </ul>

                <div class="tool">
                    <a class="delete_confirm btn btn-danger" href="<?= base_url().ADMIN_FOLDER.'/users/delete/'.$result->id ?>" style="margin-left:20px;"><i class="icon-trash" ></i>&nbsp;&nbsp;&nbsp;<?=lang('label_delete')?></a>
                    <a class="btn btn-info" href="<?= base_url().ADMIN_FOLDER?>/addressbooks/?l-username=<?=$result->username?>"><i class="icon-file"></i>&nbsp;&nbsp;&nbsp;<?=lang('label_user_view_all_adresses')?></a>
                    <a class="btn btn-info" href="<?= base_url().ADMIN_FOLDER?>/userswallet/?l-username=<?=$result->username?>"><i class="icon-briefcase"></i>&nbsp;&nbsp;&nbsp;<?=lang('label_wallet_user_view')?></a>
                    <a class="btn btn-info" href="<?= base_url().ADMIN_FOLDER?>/invoicies/?l-username=<?=$result->username?>"><i class="icon-file"></i>&nbsp;&nbsp;&nbsp;<?=lang('label_user_view_all_invoices')?></a>
                    <!--// user tool-->
                    <?php if(false){ ?>
                    <a class="btn btn-primary" href="<?= base_url().ADMIN_FOLDER?>/orders/?username=<?=$result->username?>"><i class="icon-file"></i>&nbsp;&nbsp;&nbsp;<?=lang('label_user_view_all_orders')?></a>
                    
                   
                    <?php } ?>
                   <a class="btn btn-warning" target="_blank" href="<?= base_url().ADMIN_FOLDER?>/users/login/<?=$result->id?>"><i class="icon-user"></i>&nbsp;&nbsp;&nbsp;<?=lang('label_user_login_like')?></a>
                </div>

            </div>
        </div>
    </div>
</div>

<div class="row-fluid"  style="margin-bottom: 20px;">
    <?php if(isset($addressbook)) if($addressbook) $this->view('admin/users/default_addressbook'); ?>
    <? if(isset($order_statues)) if($order_statues) $this->view('admin/users/order_statues'); ?>
    <? if(isset($last_item)) if($last_item) $this->view('admin/users/last_order'); ?>
</div>